package com.sinder.campus_prophet.utils;

import java.util.Random;

/**
 * 获取随机颜色
 * @author v-xyingde
 * @date 2023/3/24/9:38
 */
public class RandomColorUtils {
    public static String getColor() {
        // 定义颜色值
        final String[] colors = new String[]{"#A6CFE2", "#77EEDF", "#EED974",
                "#E88565", "#C6D7C7", "#BFD1B1", "#034B64", "#2B99CC", "#AFD097", "#EEBC59", "#DCB66B"};
        // 创建随机函数
        Random random = new Random();
        return colors[random.nextInt(11)];
    }
}
